from lib.log import logger
from runtime.flow import ScriptDef, StringItem

class SayHello(object):
    def __init__(self, name):
        super().__init__()
        self.name = name

    def run(self):
        logger.info(f"Hello {self.name}!")

export = ScriptDef(
            cls=SayHello,
            group="DEMO",
            title="Hello world!",
            arguments=[
                StringItem(title="姓名", name="name"),
            ]   
         )